﻿using System.Windows.Forms;
using System;

namespace UpwardsTimeClock.Prototype
{
    public partial class ControlBase: IDisposable
    {
        public ControlBase()
        {
        }

        public virtual void Initialize(Control.ControlCollection controls)
        {
            //controls.Add(this);
        }


        #region IDisposable Members

        public void Dispose()
        {
            Dispose(true);
        }

        public virtual void Reset()
        {
        }

        #endregion

        ~ControlBase()
        {
            Dispose(false);
        }

        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                GC.SuppressFinalize(this);
            }
        }
    }
}
